import request from '@/utils/request'
import url from './url'

export function createAccountApi(data) {
  return request({
    url: url.createAccountUrl,
    method: 'post',
    data
  })
}

export function updateAccountApi(data) {
  return request({
    url: url.updateAccountUrl,
    method: 'post',
    data
  })
}

export function deleteAccountApi(data) {
  return request({
    url: url.deleteAccountUrl,
    method: 'post',
    data
  })
}

export function getAccountListApi(data) {
  return request({
    url: url.getAccountListUrl,
    method: 'get',
    params: data
  })
}

export function getAccountApi(data) {
  return request({
    url: url.getAccountUrl,
    method: 'get',
    params: data
  })
}
